<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Shampoo - My Lifestyle. My Reservation.</title>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <?php Yii::app()->clientScript->registerCoreScript('jquery'); ?>
        <script src="<?php echo $this->assetDir ?>js/jquery-ui.1.10.3.min.js" type="text/javascript"></script>
        <script src="<?php echo $this->assetDir ?>js/jquery.chosen.min.js" type="text/javascript"></script>
        <?php Yii::app()->clientScript->registerScriptFile($this->assetDir . 'js/select2.min.js'); ?>

        <!--[if gte IE 9]>
          <style type="text/css">
            .gradient {
               filter: none;
            }
          </style>
        <![endif]-->
    </head>

    <body class="home">
        <div id="fb-root"></div>
        <script>(function(d, s, id) {
                var js, fjs = d.getElementsByTagName(s)[0];
                if (d.getElementById(id))
                    return;
                js = d.createElement(s);
                js.id = id;
                js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
                fjs.parentNode.insertBefore(js, fjs);
            }(document, 'script', 'facebook-jssdk'));</script>

        <div class="page-wrap">
            <div id="loading">
                <div id="loading_content">
                    <img src="<?php echo $this->assetDir ?>img/loading.gif"/>
                    <?php Yii::t('frontend','Loading ...')?>
                </div>
            </div>
            <?php echo $content; ?>
        </div>
        <?php echo $this->renderPartial('//layouts/_footer') ?>
        <?php
        //register css file
        Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/jquery-ui.1.10.3.min.css');
        Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/bootstrap.min.css');
        Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/bootstrap-responsive.min.css');
        Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/bootstrap-timepicker.min.css');
        Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/perfect-scrollbar.min.css');
        Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/fancybox.min.css');
        Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/mediaelementplayer.min.css');
        Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/custom.css');
        Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/style.css');
        Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/chosen.min.css');
        Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/responsive.css');
        Yii::app()->clientScript->registerCssFile($this->assetDir . 'css/select2.min.css');
        ?>
        <script async src="<?php echo $this->assetDir ?>js/bootstrap.min.js"></script>
        <script  src="<?php echo $this->assetDir ?>js/bootstrap-timepicker.min.js"></script>
        <script async src="<?php echo $this->assetDir ?>js/jquery.swing.js"></script>
        <script async src="<?php echo $this->assetDir ?>js/jquery.mousewheel.js"></script>
        <script async src="<?php echo $this->assetDir ?>js/perfect-scrollbar.js"></script>
        <script async src="<?php echo $this->assetDir ?>js/shampoo.js"></script>
        <script type="text/javascript">
        $(function() {
            //load ajax
            $("#loading").bind("ajaxStart", function() {
                $(this).show();
            }).bind("ajaxComplete", function() {
                $(this).hide();
            });

            $(window).scroll(function() {
                var height = $(window).scrollTop();
                if (height > 100) {
                    $('.header-new').addClass('header-scr');
                } else {
                    $('.header-new').removeClass('header-scr');
                }
            });
            setTimeout(function() {
                $('#myCarousel').carousel({
                    pause: false,
                    interval: 6000
                });
            }, 1000);
        });
        </script>
        <script>(function() {
                var _fbq = window._fbq || (window._fbq = []);
                if (!_fbq.loaded) {
                    var fbds = document.createElement('script');
                    fbds.async = true;
                    fbds.src = '//connect.facebook.net/en_US/fbds.js';
                    var s = document.getElementsByTagName('script')[0];
                    s.parentNode.insertBefore(fbds, s);
                    _fbq.loaded = true;
                }
                _fbq.push(['addPixelId', '279943108864759']);
            })();
            window._fbq = window._fbq || [];
            window._fbq.push(['track', 'PixelInitialized', {}]);
        </script>
        <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?id=279943108864759&amp;ev=NoScript" /></noscript>                
    <?php
        echo Options::getItem("js_google_tracking");
        echo Options::getItem("js_zopim_customer");
    ?>
    </body>
</html>